package org.example;/*
 * title:
 * author:
 * date:
 * description:
 * */


import jakarta.annotation.Resource;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/main")
public class Main {
@Resource
private ThreadPoolTaskExecutor taskExecutor;
@GetMapping("/main")
    public  void main() {
    taskExecutor.shutdown();
        boolean terminated = taskExecutor.getThreadPoolExecutor().isTerminated();
        System.out.println(terminated);
    }
}